package com.kuangstudy.method;

/**
 * ClassName: Demo2
 * date: 2021/7/10/010
 *
 * @author zlk
 */
public class Demo2 {
    public static void main(String[] args) {
        System.out.println(f(12));
    }
    public static int f(int i){
        if (i == 1){
            return 1;
        }else {
            return i*f(i-1);
        }
    }
}
